package edu.nwpu.zya.coreops.modules.resource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.nwpu.zya.coreops.common.utils.PageUtils;
import edu.nwpu.zya.coreops.modules.resource.entity.RdsEntity;
import edu.nwpu.zya.coreops.modules.resource.vo.RdsVo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author zhouyuang
 * @email 742025491@qq.com
 * @date 2022-05-04 20:57:25
 */
public interface RdsService extends IService<RdsEntity> {
    PageUtils queryRdsVoPage(Map<String, Object> params);

    PageUtils queryMetricVoPageByType(Map<String, Object> params);

    void addMetrics(Long rdsId, List<Long> metricIds);

    void cancelMetrics(Long rdsId, List<Long> metricIds);

    List<RdsEntity> getRdsListByUserId(Long userId);

    RdsEntity getRdsByRuleId(Long ruleId);

    RdsEntity getRdsByInstanceId(String instanceId);

    void removeRdsByIds(List<Long> asList);

    void deleteRdsMockTask(List<Long> ids);

    void saveRds(RdsEntity rdsEntity);

    void updateByRds(RdsEntity rds);
}

